package org.hepeng.workx.util.proxy;

import java.lang.reflect.Method;

/**
 * @author he peng
 */
public abstract class AbstractInvocation implements Invocation {

    protected Object target;
    protected Method method;
    protected Object[] args;

    public AbstractInvocation(Object target, Method method, Object[] args) {
        this.target = target;
        this.method = method;
        this.args = args;
    }

    @Override
    public Object getTarget() {
        return this.target;
    }

    @Override
    public Method getMethod() {
        return this.method;
    }

    @Override
    public Object[] getArgs() {
        return this.args;
    }
}
